package dierti;

import java.util.ArrayList;
import java.util.Collection;

public class test {
    public static void main(String[] args) {
        Collection<film> c=new ArrayList();
      film f1=new film("肖生客的救赎","犯罪","弗兰特德拉.邦特","蒂姆.罗宾斯");
      film f2=new film("霸王别姬","爱情","陈凯歌","张国荣");
      film f3=new film("阿甘正传","爱情","罗伯特.泽米基斯","汤姆.汉克");
       c.add(f1);
       c.add(f2);
       c.add(f3);
        for (film film : c) {
            System.out.println("电影名:" + film.getName() + "类型:" + film.getType() + "导演:" + film.getDirector() + "演员:" + film.getAct());
        }

    }
}
